* keyboard.c (Fsuspend_emacs):
authorJim Blandy <jimb@redhat.com>
Wed, 24 Mar 1993 01:46:10 +0000 (01:46 +0000)
committerJim Blandy <jimb@redhat.com>
Wed, 24 Mar 1993 01:46:10 +0000 (01:46 +0000)
Change suspend-hooks back to suspend-hook and make it a normal hook.

src/keyboard.c

index 904257ad9121029d1fb0ff6d0edf28b03d2c66fa..aa2a8503270ccd5a9e1711721c6a2a120637c34c 100644 (file)
@@ -4151,17 +4151,9 @@ On such systems, Emacs starts a subshell instead of suspending.")
   if (!NILP (stuffstring))
     CHECK_STRING (stuffstring, 0);
 
-  /* Run the functions in suspend-hooks.  */
-  tem = Fsymbol_value (intern ("suspend-hooks"));
-  while (CONSP (tem))
-    {
-      Lisp_Object val;
-      GCPRO2 (stuffstring, tem);
-      val = call0 (Fcar (tem));
-      UNGCPRO;
-      tem = Fcdr (tem);
-      if (!EQ (val, Qnil)) return Qnil;
-    }
+  /* Run the functions in suspend-hook.  */
+  if (!NILP (Vrun_hooks))
+    call1 (Vrun_hooks, intern ("suspend-hook"));
 
   GCPRO1 (stuffstring);
   get_frame_size (&old_width, &old_height);
@@ -4180,8 +4172,7 @@ On such systems, Emacs starts a subshell instead of suspending.")
   if (width != old_width || height != old_height)
     change_frame_size (0, height, width, 0, 0);
 
-  /* Call value of suspend-resume-hook
-     if it is bound and value is non-nil.  */
+  /* Run suspend-resume-hook.  */
   if (!NILP (Vrun_hooks))
     call1 (Vrun_hooks, intern ("suspend-resume-hook"));